package org.finalministry.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.finalministry.objects.Congregation;

@Path("/congregation")
public class ServiceCongregation {

	@GET
	@Path("/{name}")
	@Produces(MediaType.APPLICATION_XML)
	public Congregation getCongregation(@PathParam("name") String name) {

		Congregation dummy = new Congregation();
		dummy.setName(name);

		return dummy;
	}
}
